/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufms.facom.locadora.ws;

import br.ufms.facom.locadora.ws.exception.WebServiceException;
import java.io.*;

/**
 *
 * @author jairo
 */
public class Error {
    private String msg;
    private String techMsg;
    

    Error(WebServiceException ex) {
        msg = ex.getMessage();
        
        StringWriter sw = new StringWriter();
        PrintWriter pw = new PrintWriter(sw);
        ex.printStackTrace(pw);
        
        techMsg = sw.toString();
    }

    public String getTechMsg() {
        return techMsg;
    }
    
    public String getMsg() {
        return msg;
    }
}
